﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Com.CMS263.PO;
using Com.CMS263.BLL;
using Com.CMS263.Util;
namespace Com.CMS263.Web.manage
{
    public partial class addClass : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            string typeName = this.txtTypeName.Text;
            string className = this.txtClassName.Text;
            string openData = this.txtOpenType.Text;
            string content = this.con.Value;
            Classes classes = new Classes();
            classes.openTime = openData;
            classes.title = className;
            classes.typeName = typeName;
            classes.content = this.con.Value;
            classes.addDate = DateTime.Now;
            new ClassesBLL().Add(classes);
            StringUtil.Alert("添加成功","manageClass.aspx");
        }
    }
}
